﻿using System;
using System.Collections.Generic;
using System.Text;
using DTcms.DBUtility;
using System.Data;

namespace DTcms.DAL
{
    public partial class Event
    {
        public Event() { }

        public DataSet GetList(string strWhere)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select * ");
            strSql.Append(" FROM Event ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            strSql.Append(" order by EventID desc");
            return DbHelperSQL.Query(strSql.ToString());
        }
    }
}
